<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>专家姓名：</label>
                                <input type="text" name="xingming"/>
                            </li>
                            <li>
                                <label>证件类型：</label>
                                <input type="text" name="zhengjianleixing"/>
                            </li>
                            <li>
                                <label>证件号码：</label>
                                <input type="text" name="zhengjianhaoma"/>
                            </li>
                            <li>
                                <label>性别：</label>
                                <input type="text" name="xingbie"/>
                            </li>
                            <li>
                                <label>出生日期：</label>
                                <input type="text" class="time-input" placeholder="请选择出生日期" name="chushengriqi"/>
                            </li>
                            <li>
                                <label>国籍：</label>
                                <input type="text" name="guoji"/>
                            </li>
                            <li>
                                <label>入选享受政府特殊津贴专家年份：</label>
                                <input type="text" name="ruxuannianfen"/>
                            </li>
                            <li>
                                <label>工作单位：</label>
                                <input type="text" name="gongzuodanwei"/>
                            </li>
                            <li>
                                <label>工作状态：</label>
                                <input type="text" name="gongzuozhuangtai"/>
                            </li>
                            <li>
                                <label>所属行业：</label>
                                <input type="text" name="suoshuhangye"/>
                            </li>
                            <li>
                                <label>邮编：</label>
                                <input type="text" name="youbian"/>
                            </li>
                            <li>
                                <label>手机号码：</label>
                                <input type="text" name="shoujihaoma"/>
                            </li>
                            <li>
                                <label>电话号码：</label>
                                <input type="text" name="dianhuahaoma"/>
                            </li>
                            <li>
                                <label>电子邮箱：</label>
                                <input type="text" name="email"/>
                            </li>
                            <li>
                                <label>地址：</label>
                                <input type="text" name="dizhi"/>
                            </li>
                            <li>
                                <label>专家状态：</label>
                                <input type="text" name="zhuanjiazhuangtai"/>
                            </li>
                            <li>
                                <label>状态变动时间：</label>
                                <input type="text" class="time-input" placeholder="请选择状态变动时间" name="zhuangtaibiandongshijian"/>
                            </li>
                            <li>
                                <label>最后拨款时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后拨款时间" name="zuihoubokuanshijian"/>
                            </li>
                            <li>
                                <label>联系人1：</label>
                                <input type="text" name="lianxiren1"/>
                            </li>
                            <li>
                                <label>联系电话1：</label>
                                <input type="text" name="lianxidianhua1"/>
                            </li>
                            <li>
                                <label>与专家关系1：</label>
                                <input type="text" name="guanxi1"/>
                            </li>
                            <li>
                                <label>联系人2：</label>
                                <input type="text" name="lianxiren2"/>
                            </li>
                            <li>
                                <label>联系电话2：</label>
                                <input type="text" name="lianxidianhua2"/>
                            </li>
                            <li>
                                <label>与专家关系2：</label>
                                <input type="text" name="guanxi2"/>
                            </li>
                            <li>
                                <label>联系人3：</label>
                                <input type="text" name="lianxiren3"/>
                            </li>
                            <li>
                                <label>联系电话3：</label>
                                <input type="text" name="lianxidianhua3"/>
                            </li>
                            <li>
                                <label>与专家关系3：</label>
                                <input type="text" name="guanxi3"/>
                            </li>
                            <li>
                                <label>银行名称：</label>
                                <input type="text" name="yinhangmingcheng"/>
                            </li>
                            <li>
                                <label>银行卡号：</label>
                                <input type="text" name="yinhangkahao"/>
                            </li>
                            <li>
                                <label>联行号：</label>
                                <input type="text" name="lianhanghao"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu1"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu2"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu3"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu4"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu5"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu6"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu7"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu8"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu9"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu10"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:zhuanjia:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:zhuanjia:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:zhuanjia:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:zhuanjia:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:zhuanjia:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:zhuanjia:remove')}]];
        var prefix = ctx + "system/zhuanjia";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "专家",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'zhuanjiaid',
                    title: '专家代码',
                    visible: false
                },
                {
                    field: 'xingming',
                    title: '专家姓名'
                },
                {
                    field: 'zhengjianleixing',
                    title: '证件类型'
                },
                {
                    field: 'zhengjianhaoma',
                    title: '证件号码'
                },
                {
                    field: 'xingbie',
                    title: '性别'
                },
                {
                    field: 'chushengriqi',
                    title: '出生日期'
                },
                {
                    field: 'guoji',
                    title: '国籍'
                },
                {
                    field: 'ruxuannianfen',
                    title: '入选享受政府特殊津贴专家年份'
                },
                {
                    field: 'gongzuodanwei',
                    title: '工作单位'
                },
                {
                    field: 'gongzuozhuangtai',
                    title: '工作状态'
                },
                {
                    field: 'suoshuhangye',
                    title: '所属行业'
                },
                {
                    field: 'youbian',
                    title: '邮编'
                },
                {
                    field: 'shoujihaoma',
                    title: '手机号码'
                },
                {
                    field: 'dianhuahaoma',
                    title: '电话号码'
                },
                {
                    field: 'email',
                    title: '电子邮箱'
                },
                {
                    field: 'dizhi',
                    title: '地址'
                },
                {
                    field: 'zhuanjiazhuangtai',
                    title: '专家状态'
                },
                {
                    field: 'zhuangtaibiandongshijian',
                    title: '状态变动时间'
                },
                {
                    field: 'zuihoubokuanshijian',
                    title: '最后拨款时间'
                },
                {
                    field: 'lianxiren1',
                    title: '联系人1'
                },
                {
                    field: 'lianxidianhua1',
                    title: '联系电话1'
                },
                {
                    field: 'guanxi1',
                    title: '与专家关系1'
                },
                {
                    field: 'lianxiren2',
                    title: '联系人2'
                },
                {
                    field: 'lianxidianhua2',
                    title: '联系电话2'
                },
                {
                    field: 'guanxi2',
                    title: '与专家关系2'
                },
                {
                    field: 'lianxiren3',
                    title: '联系人3'
                },
                {
                    field: 'lianxidianhua3',
                    title: '联系电话3'
                },
                {
                    field: 'guanxi3',
                    title: '与专家关系3'
                },
                {
                    field: 'yinhangmingcheng',
                    title: '银行名称'
                },
                {
                    field: 'yinhangkahao',
                    title: '银行卡号'
                },
                {
                    field: 'lianhanghao',
                    title: '联行号'
                },
                {
                    field: 'status',
                    title: '状态'
                },
                {
                    field: 'beizhu1',
                    title: ''
                },
                {
                    field: 'beizhu2',
                    title: ''
                },
                {
                    field: 'beizhu3',
                    title: ''
                },
                {
                    field: 'beizhu4',
                    title: ''
                },
                {
                    field: 'beizhu5',
                    title: ''
                },
                {
                    field: 'beizhu6',
                    title: ''
                },
                {
                    field: 'beizhu7',
                    title: ''
                },
                {
                    field: 'beizhu8',
                    title: ''
                },
                {
                    field: 'beizhu9',
                    title: ''
                },
                {
                    field: 'beizhu10',
                    title: ''
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.zhuanjiaid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.zhuanjiaid + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>